package com.pug.gateway.service;

import org.springframework.stereotype.Service;
import xq.pug.common.jwt.JwtUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author RenGaoshuai
 * @date 2023/5/16 17:47
 * @description
 */
@Service
public class TokenService {

    public String getToken(String authorization) {
        return JwtUtils.getToken(authorization);
    }

    public boolean validateToken(String authentication) {
        return JwtUtils.validateToken(authentication);
    }
}
